.container
  = render 'op_header_return'
  %input{"type"=>"hidden","id"=>"jyd_shared_desc","value"=>"#{@product.current_title}"}
  %input{"type"=>"hidden","id"=>"jyd_shared_title","value"=>""}
  %input{"type"=>"hidden","id"=>"jyd_shared_url","value"=>"/product_show?product_id=#{@product.id.to_s}"}
  %input{"type"=>"hidden","id"=>"jyd_shared_img_url","value"=>"#{@product.avatar_url}"}
  -#= image_tag @product.avatar_url,:style => "display:none;",:id => 'jyd_shared_img_url'
  #product_container
    #carrousel{:style => 'background-color:#FFFFFF;'}
      .swiper-container{:style => 'top: 0px;'}
        .swiper-wrapper
          - @product.mains.each do |main_url|
            .swiper-slide
              = image_tag main_url
        .swiper-pagination
    #product_base_info
      %span.product_title
        = @product.current_title
      %span.product_sale
        %span.current_price_label
          = "专享价："
        %span.current_price
          = "#{@product.current_price}"
        %span.market_price
          = "零售价：#{@product.marketPrice}"
        %span.sale_num
          = "已售：#{@product.sale_count}"
    .weui_cells{:style => 'margin-top: 0px;'}
      .weui_cell
        .weui_cell_hd
          %label.weui_label
            品牌
        .weui_cell_bd
          %p
            = @product.brand
      .weui_cell
        .weui_cell_hd
          %label.weui_label
            规格
        .weui_cell_bd
          %p
            = @product.specification
      .weui_cell
        .weui_cell_hd
          %label.weui_label
            产地
        .weui_cell_bd
          %p
            = @product.origin
    .weui_cells_title
      商品详情
    .weui_cells{:style => 'margin-top: 0px;'}
      .weui_cell
        = image_tag @product.desc_url,:width => '100%'

  #product_show_footer_container
    %a#go_index.tabbar_item{:href => 'javascript:index();'}
      .icon
        = image_tag "/root/icon_index.png"
      .icon_label
        首页
    %a#go_shoppingcart.tabbar_item{:href => 'javascript:cart();','data-info' => 'cart'}
      .icon
        %span#icon_container
          = image_tag "/root/icon_cart.png"
          -if @shoppingcart_number==0
            %span#index-product-number{:style => 'display:none'}
              = @shoppingcart_number
          -else
            %span#index-product-number
              = @shoppingcart_number
      .icon_label
        购物车
    %a#add_shoppingcart{:href => "javascript:add_product_to_cart('#{@product.id.to_s}',1);"}
      %span
        加入购物车
    %a#now_buy{:href => "javascript:instant_to_buy_for_one('#{@product.id.to_s}');"}
      %span
        立即购买
  /购物车
  = render 'shoppingcart'